{{#if targetPackage ~}}
    package {{targetPackage}};
{{/if}}
{{#each imports ~}}
    import {{this}};
{{/each}}
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class {{name}} extends Model<{{name}}>{
{{#each table.columns}}
    /**
     * {{#if this.comment}}{{this.comment}}{{/if}}
     */
    {{#if this.isPK ~}} @TableId(value = "{{this.field}}", type = IdType.ID_WORKER) {{else ~}} @TableField("{{this.field}}") {{/if}}
    private {{this.javaType.type.simpleName}} {{lowerUnderScore2LowerCamel this.field}};
{{~/each}}

}